import '../styles/iconfont.css'
import { lazy } from "react";
import Home from '../views/Home/Home'
import HouseInfo from '../views/Home/components/context/HouseInfo'
// import Attention from '../views/Attention/Attention'
import Issue from '../views/Issue/Issue'
import News from '../views/News/News'
import Mine from '../views/Mine/Mine'
import Userinfo from '../views/News/Userinfo'
// import AtnDetail from "../views/Attention/Attention_detail/detail"
import FillInformation_demand from '../views/Issue/fillInformation_demand'
import Map from '../views/Issue/Map'
const Attention = lazy(() => import("../views/Attention/Attention"));
const AtnDetail = lazy(() => import("../views/Attention/Attention_detail/detail"));
const router = [
  {
    path: "/Home",
    key: "Home",
    text: "首页",
    ico: "iconfont iconzhuye",
    component: Home,
  },
  {
    path: "/attention",
    key: "Attention",
    text: "关注",
    ico: "iconfont iconzhinanzhen",
    component: Attention,
  },
  {
    path:'/Issue',
    key:'Issue',
    text:'',
    ico:'iconfont iconjia2 issuefont',
    component:Issue,
    children:[
      {
        path:'/fillInformation_demand',
        key:'fillInformation_demand',
        component:FillInformation_demand
      },{
        path:'/Map',
        key:'Map',
        component:Map,
      }
    ]
  },
  {
    path: "/News",
    key: "News",
    text: "消息",
    ico: "iconfont iconxiaoxi",
    component: News,
    children: [
      {
        path:'/Userinfo',
        key:'Issue',
        component:Userinfo
      }
    ]
  },
  {
    path: "/Mine",
    key: "Mine",
    text: "我的",
    ico: "iconfont iconwode",
    component: Mine,
  },
  {
    path:'/HouseInfo',
    key:'HouseInfo',
    component:HouseInfo,
  },
  {
    path: "/attention/detail",
    key: "Detail",
    component: AtnDetail,
  },
];

export default router;
